package movieexample.movieexample.service;

import movieexample.movieexample.dao.PersonDao;
import movieexample.movieexample.pojo.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PersonService {
    @Autowired
    PersonDao personDao;

    public Person findByName(String name){

        return personDao.findByName(name);
    }
    public Iterable<Person> findAll(){
        return personDao.findAll();
    }
}
